/*
 * @Author: zxh
 * @Email: 1271027008@qq.com
 * @Date: 2020-03-10 10:27:53
 * @Descripttion: 
 */
import { Injectable } from '@angular/core';
import { ApplyWareService } from '../apply-ware/apply-ware.service';
import { Observable } from 'rxjs';
import { HttpClient, HttpHeaders, HttpParams } from "@angular/common/http";

@Injectable({
  providedIn: 'root'
})
export class ExamineApproveWareService {

  constructor(
    private ApplyWareService:ApplyWareService,
    private http:HttpClient
  ) { }
  private approveUrl = '/api/materialInoutReq/approval'
  // 获取审批出入库列表
  apiList(data):Observable<any>{
    return this.ApplyWareService.apiList(data).pipe()
  }
  // 获取单据类型
  getEnum(data):Observable<any>{
    return this.ApplyWareService.GetEnum(data).pipe()
  }
  // 获取详情
  getDetail(data):Observable<any>{
    return this.ApplyWareService.GetModel(data).pipe()
  }
  // 审批
  approveAgree(data):Observable<any>{
    return this.http.put(this.approveUrl,data).pipe()
  }
}
